﻿using Zavand.Web.Mvc.Manana.Framework;

namespace Zavand.Web.Mvc.Manana.SampleWebsite.Controllers.My.Actions.Index
{
    public class Model : MyControllerModel<Route, MyController>, IPageable
    {
        public override void SetupModel(MyController controller, Route route)
        {
            base.SetupModel(controller, route);
            Page = route.Page.Value;
            PageSize = route.PageSize.Value;
        }

        public int Page { get; set; }
        public int PageSize { get; set; }
    }
}